package com.zheng.provider.server;


import com.zheng.provider.service.UserServiceImpl;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Order(value = 1)
public class ServerBootStrap implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        UserServiceImpl.startServer("127.0.0.1",8999);
        System.out.println("启动Netty");
    }
}
